package zut.cs.liziflower.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import zut.cs.liziflower.entity.Flower;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import zut.cs.liziflower.entity.Language;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xuwenke
 * @since 2022-05-16
 */
public interface FlowerMapper extends BaseMapper<Flower> {
    List<Flower> getFlowers(@Param("name") String name);
    Flower getDetail(@Param("flowerid") int flowerid);
    List<Flower> getAll();

    List<Language> getFlowerLanguage();

    List<Language> getOneLanguage(@Param("find") String find);
}
